package com.project.queue.helper;

import com.project.queue.config.QueueProperties;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author mengxj
 */
@Component
public class QueuePropertiesHelper {

    private static QueueProperties queueProperties;

    @Resource
    public void setQueueProperties(QueueProperties queueProperties) {
        QueuePropertiesHelper.queueProperties = queueProperties;
    }

    public static String type(){
        return queueProperties.getType();
    }
}
